*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Popping', sans-serif;
}
.root{
  position: relative;
  min-height: 100vh;
  display: flex;
  background: #557085;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: 0.5s;
}
.active{
  background: #3e3f39;
}
.root>.container{
  position: relative;
  width: 728px;
  height: 500px;
  background-color: #fff;
  box-shadow: 15px 15px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border-radius: 5px;
}
.root>.container>.user{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}
.root>.container>.user>.imgBox{
  position: relative;
  width: 50%;
  height: 100%;
  transition: 0.5s;
}
.root>.container>.user>.imgBox img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.5s;
  object-fit: cover;
}
.root>.container>.user>.formBox{
  position: relative;
  width: 50%;
  height: 100%;
  padding: 0 40px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}
.root>.container>.user>.formBox h2{
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 10px;
  color: #555;
}
.root>.container>.user>.formBox .el-input{
  font-size: 14px;
  margin: 8px 0;
  letter-spacing: 1px;
  font-weight: 300;
  border-radius: 10px;
}
.root>.container>.user>.formBox .signup{
  position: relative;
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #555;
  text-transform: uppercase;
  font-weight: 300;
}
.root>.container>.user>.formBox a{
  font-weight: 600;
  text-decoration: none;
  color: #577eff;
}

.root>.container>.signupBox{
  pointer-events: none;
}
.root>.container>.signupBox>.formBox{
  top: 100%;
}
.root>.container>.signupBox>.imgBox{
  top: -100%;
  transition: 0.5s;
}
.root>.container.active>.signupBox{
  pointer-events: initial;
}
.root>.container.active>.signupBox>.formBox{
  top: 0;
}
.root>.container.active>.signupBox>.imgBox{
  top: 0;
}



.root>.container>.signinBox>.formBox{
  top: 0;
}
.root>.container>.signinBox>.imgBox{
  top: 0;
  transition: 0.5s;
}

.root>.container.active>.signinBox>.formBox{
  top: 100%;
}
.root>.container.active>.signinBox>.imgBox{
  top: -100%;
}
@media (max-width: 991px){
  .root>.container{ max-width: 400px; }
  .root>.container .imgBox{ display: none; }
  .root>.container>.user .formBox{ width: 100%; }
  .root>.container.active>.signinBox .formBox{ top: -100%; }
}
